/**
 * 安卓白金英雄坛制作组 <br>
 * 文件名：XueHuaLiuChu.java <br>
 * 创建时间：2013-8-23 下午7:52:46 <br>
 * 所属项目：GmudEX <br>
 * @author 12548 <br>
 */
package lostland.gmud.exv2.battle.proc.stunt;

import lostland.gmud.exv2.battle.BattleScreen;
import lostland.gmud.exv2.battle.proc.Status;
import lostland.gmud.exv2.data.Npc;

/**
 * 类名：XueHuaLiuChu <br>
 * 说明：38.雪影擒拿手·8.雪花六出
 *
 * @author 12548
 */
public class XueHuaLiuChu extends Status {

	/**
	 * @param zdp
	 * @param bdp
	 */
	public XueHuaLiuChu(Npc zdp, Npc bdp) {
		super(zdp, bdp);
	}


	int round = -1;

	int chu;


	/*
	 * （非 Javadoc）
	 * 
	 * @see lostland.gmud.exv2.battle.proc.Status#execute()
	 */
	@Override
	public void execute() {
		round++;
		if (round == 0) {
//			int maxc = zdp.equips(Room.super_toys[2]) ? 6 : 5;
			// 十玩具2：轩辕剑
			chu = 2 + (zdp.skills[38] - 60) / 20;
//			chu = Math.min(chu, maxc);
			if (chu > 5) chu = 5;
			String p = "【雪花六出" + (round + 1) + "/" + chu + "】";
			BattleScreen.getInstance().atkprocess(zdp, bdp, null, this, p);
//			GmudWorld.bs.push(this);

		} else if (round < chu) {

			String p = "【雪花六出" + (round + 1) + "/" + chu + "】";
			BattleScreen.getInstance().atkprocess(zdp, bdp, null, this, p);
//			GmudWorld.bs.push(this);

		} else {
			zdp.setTransfixed(zdp.getDz() + 3);
//			GmudWorld.bs.setStatus(new RoundOverStatus());
		}

	}

}
